SignupViewModel

class SignupViewModel @Inject constructor(userRepository: UserRepository, accountService: AccountService) : ViewModel

ViewModel responsible for managing the signup process. Handles account creation and UI state updates.

Constructors

Link copied to clipboard
@Inject
constructor(userRepository: UserRepository, accountService: AccountService)

Properties

Link copied to clipboard
val uiState: StateFlow<SignupUiState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
fun createAccount(onResult: () -> Unit)

Attempts to create a new user account.

Link copied to clipboard
Link copied to clipboard
fun onEmailChange(newValue: String)

Updates the email field in the UI state.

Link copied to clipboard
fun onPasswordChange(newValue: String)

Updates the password field in the UI state.

Link copied to clipboard

Updates the verification password field in the UI state.